local _M = {}

function _M:split(s, p)
    local rt = {}
    if not s then
        return rt
    end
    if not p then
        return {s}
    end
    string.gsub(s, '[^'..p..']+', function(w) table.insert(rt, w) end )
    return rt
end

return _M